package com.qf.huigou.pojo;

import lombok.Data;

import java.util.Objects;

/**
 * @version 1.8.0_131
 * @Author WangYiZhu
 * @Email 2641956765@qq.com  这个类是对应inForDetail这张表，主要是用来作为评估步骤中map集合value值的key
 * @Time 2022/12/08 18:44
 */
@Data
public class SubProperty {
    private Integer subPropertyId;
    private String subPropertyName;
    private String subPropertyDesc;
    private ParProperty parProperty;//表与表之间一对一关系

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SubProperty that = (SubProperty) o;
        return Objects.equals(subPropertyId, that.subPropertyId) && Objects.equals(subPropertyName, that.subPropertyName) && Objects.equals(subPropertyDesc, that.subPropertyDesc) && Objects.equals(parProperty, that.parProperty);
    }

    @Override
    public int hashCode() {
        return Objects.hash(subPropertyId, subPropertyName, subPropertyDesc, parProperty);
    }
}
